<? if(!empty($items)): ?>
<ul title="search results">
<? foreach($items as $key=>$i): ?>
	<li><a href="#rss_<?= $key ?>"><?= $i['title'] ?></a></li>
<? endforeach ?>
</ul>
<? foreach($items as $key=>$val):?>
	<div id="rss_<?= $key ?>" class="panel" title="<?= $val['title']?>">
		<fieldset>
		<?
		$guid_array = explode('/', trim($val['guid']));
//		$guid = array_pop($guid_array);
		$guid = $guid_array[count($guid_array)-2];
		?>
		<h2>Newzbin ID: <?= $guid ?></h2>
	<?	foreach($val['info'] as $info): ?>
		<div class="row"><?= $info ?></div>
	<?	endforeach ?>

		</fieldset>
		<div class="whiteButton" onclick="hellaLink()">Download</div>
	</div>
<? endforeach ?>
<? else: ?>
<div title="none found" class="panel">
	<fieldset>
		<div class="row">No Results found.</div>
	</fieldset>
</div>
<? endif ?>